package leetcode.weekly.week326;

//Solution1Test
public class Solution1 {

	public int countDigits(int num) {
		int ans = 0;
		int t = num;
		while (t > 0) {
			int cur = t % 10;
			if (num % cur == 0) {
				ans++;
			}
			t /= 10;
		}
		return ans;
	}

}
